

#import <UIKit/UIKit.h>
#import "DayButton.h"

@protocol DDCalendarViewDelegate <NSObject>
- (void)dayButtonPressed:(DayButton *)button;

@optional
- (void)prevButtonPressed;
- (void)nextButtonPressed;

@end

@interface DDCalendarView : UIView <DayButtonDelegate> 

@property(nonatomic, assign) id <DDCalendarViewDelegate> delegate;
@property (nonatomic , copy) NSString *calendarFontName;
@property (nonatomic , weak) UILabel *monthLabel;
@property (nonatomic , strong) NSMutableArray *dayButtons;
@property (nonatomic , strong) NSCalendar *calendar;
@property (nonatomic , assign) float calendarWidth;
@property (nonatomic , assign) float calendarHeight;
@property (nonatomic , assign) float cellWidth;
@property (nonatomic , assign) float cellHeight;
@property (nonatomic , assign) int currentMonth;
@property (nonatomic , assign) int currentYear;


- (id)initWithFrame:(CGRect)frame fontName:(NSString *)fontName delegate:(id)theDelegate;
- (void)updateCalendarForMonth:(int)month forYear:(int)year;
- (void)drawDayButtons;
- (void)prevBtnPressed:(id)sender;
- (void)nextBtnPressed:(id)sender;

@end
